package com.autumn.cloud.demo.provider.services.dubbo;


import com.autumn.cloud.demo.dubbo.api.bo.OrderInfoBO;
import com.autumn.cloud.demo.dubbo.api.services.OrderApiService;

import java.util.List;

/**
 * <p>
 * 通过分组解决多个实现的绑定，版本解决升级问题
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-12-16 00:14
 **/
@com.alibaba.dubbo.config.annotation.Service(group = "g1")
@org.springframework.stereotype.Service
public class OrderApiServiceImpl extends AbstractOrderApiService implements OrderApiService {

    @Override
    public List<OrderInfoBO> orders() {
        List<OrderInfoBO> items = super.orders();
        for (OrderInfoBO item : items) {
            item.setOrderTitle(item.getOrderTitle() + "[Group-1]");
        }
        return items;
    }
}
